
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon53"></use>
                    </svg>
                    <div class="name">箭头-下</div>
                    <div class="fontclass">#tocer-icon53</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon44"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#tocer-icon44</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon01"></use>
                    </svg>
                    <div class="name">企业办公楼</div>
                    <div class="fontclass">#tocer-icon01</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon02"></use>
                    </svg>
                    <div class="name">客服小姑娘</div>
                    <div class="fontclass">#tocer-icon02</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-58"></use>
                    </svg>
                    <div class="name">全屏</div>
                    <div class="fontclass">#tocer-icon-58</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon50"></use>
                    </svg>
                    <div class="name">电话</div>
                    <div class="fontclass">#tocer-icon50</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon03"></use>
                    </svg>
                    <div class="name">指定范围</div>
                    <div class="fontclass">#tocer-icon03</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon04"></use>
                    </svg>
                    <div class="name">群组多人</div>
                    <div class="fontclass">#tocer-icon04</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon34"></use>
                    </svg>
                    <div class="name">more-horiz</div>
                    <div class="fontclass">#tocer-icon34</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon35"></use>
                    </svg>
                    <div class="name">more-vert</div>
                    <div class="fontclass">#tocer-icon35</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon05"></use>
                    </svg>
                    <div class="name">咨询服务</div>
                    <div class="fontclass">#tocer-icon05</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon37"></use>
                    </svg>
                    <div class="name">电话</div>
                    <div class="fontclass">#tocer-icon37</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon41"></use>
                    </svg>
                    <div class="name">暂停</div>
                    <div class="fontclass">#tocer-icon41</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon06"></use>
                    </svg>
                    <div class="name">工作台</div>
                    <div class="fontclass">#tocer-icon06</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon49"></use>
                    </svg>
                    <div class="name">右箭头</div>
                    <div class="fontclass">#tocer-icon49</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon38"></use>
                    </svg>
                    <div class="name">wbdicon-soft-pdf</div>
                    <div class="fontclass">#tocer-icon38</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon36"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#tocer-icon36</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon07"></use>
                    </svg>
                    <div class="name">奖章勋章</div>
                    <div class="fontclass">#tocer-icon07</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon08"></use>
                    </svg>
                    <div class="name">legal</div>
                    <div class="fontclass">#tocer-icon08</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon09"></use>
                    </svg>
                    <div class="name">book</div>
                    <div class="fontclass">#tocer-icon09</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon39"></use>
                    </svg>
                    <div class="name">放大镜</div>
                    <div class="fontclass">#tocer-icon39</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon40"></use>
                    </svg>
                    <div class="name">暂停</div>
                    <div class="fontclass">#tocer-icon40</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon45"></use>
                    </svg>
                    <div class="name">日历</div>
                    <div class="fontclass">#tocer-icon45</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon42"></use>
                    </svg>
                    <div class="name">录音</div>
                    <div class="fontclass">#tocer-icon42</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon10"></use>
                    </svg>
                    <div class="name">f9mod-10</div>
                    <div class="fontclass">#tocer-icon10</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon11"></use>
                    </svg>
                    <div class="name">f9mod-12</div>
                    <div class="fontclass">#tocer-icon11</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon12"></use>
                    </svg>
                    <div class="name">f9mod-23</div>
                    <div class="fontclass">#tocer-icon12</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon13"></use>
                    </svg>
                    <div class="name">f9mod-25</div>
                    <div class="fontclass">#tocer-icon13</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon14"></use>
                    </svg>
                    <div class="name">f9mod-39</div>
                    <div class="fontclass">#tocer-icon14</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon15"></use>
                    </svg>
                    <div class="name">f9mod-57</div>
                    <div class="fontclass">#tocer-icon15</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon16"></use>
                    </svg>
                    <div class="name">f9mod-75</div>
                    <div class="fontclass">#tocer-icon16</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon17"></use>
                    </svg>
                    <div class="name">f9mod-113</div>
                    <div class="fontclass">#tocer-icon17</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon18"></use>
                    </svg>
                    <div class="name">stethoscope</div>
                    <div class="fontclass">#tocer-icon18</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon19"></use>
                    </svg>
                    <div class="name">lightbulb</div>
                    <div class="fontclass">#tocer-icon19</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon20"></use>
                    </svg>
                    <div class="name">thumbs-down</div>
                    <div class="fontclass">#tocer-icon20</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon21"></use>
                    </svg>
                    <div class="name">thumbs-up</div>
                    <div class="fontclass">#tocer-icon21</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon22"></use>
                    </svg>
                    <div class="name">play-circle</div>
                    <div class="fontclass">#tocer-icon22</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon23"></use>
                    </svg>
                    <div class="name">iconfont-message</div>
                    <div class="fontclass">#tocer-icon23</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon24"></use>
                    </svg>
                    <div class="name">iconfont-haoyou</div>
                    <div class="fontclass">#tocer-icon24</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon25"></use>
                    </svg>
                    <div class="name">iconfont-vipcard</div>
                    <div class="fontclass">#tocer-icon25</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon26"></use>
                    </svg>
                    <div class="name">iconfont-bangzhuzhongxin</div>
                    <div class="fontclass">#tocer-icon26</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon27"></use>
                    </svg>
                    <div class="name">iconfont-people</div>
                    <div class="fontclass">#tocer-icon27</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon28"></use>
                    </svg>
                    <div class="name">icon01</div>
                    <div class="fontclass">#tocer-icon28</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon29"></use>
                    </svg>
                    <div class="name">icon02</div>
                    <div class="fontclass">#tocer-icon29</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon30"></use>
                    </svg>
                    <div class="name">icon03</div>
                    <div class="fontclass">#tocer-icon30</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon31"></use>
                    </svg>
                    <div class="name">icon04</div>
                    <div class="fontclass">#tocer-icon31</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon32"></use>
                    </svg>
                    <div class="name">icon05</div>
                    <div class="fontclass">#tocer-icon32</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon33"></use>
                    </svg>
                    <div class="name">icon06</div>
                    <div class="fontclass">#tocer-icon33</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon43"></use>
                    </svg>
                    <div class="name">勾勾</div>
                    <div class="fontclass">#tocer-icon43</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-59"></use>
                    </svg>
                    <div class="name">缩小</div>
                    <div class="fontclass">#tocer-icon-59</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-72"></use>
                    </svg>
                    <div class="name">漏斗</div>
                    <div class="fontclass">#tocer-icon-72</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-65"></use>
                    </svg>
                    <div class="name">现金</div>
                    <div class="fontclass">#tocer-icon-65</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-66"></use>
                    </svg>
                    <div class="name">刷卡</div>
                    <div class="fontclass">#tocer-icon-66</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-63"></use>
                    </svg>
                    <div class="name">齿轮</div>
                    <div class="fontclass">#tocer-icon-63</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-60"></use>
                    </svg>
                    <div class="name">全屏</div>
                    <div class="fontclass">#tocer-icon-60</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-69"></use>
                    </svg>
                    <div class="name">叉</div>
                    <div class="fontclass">#tocer-icon-69</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-62"></use>
                    </svg>
                    <div class="name">感叹号</div>
                    <div class="fontclass">#tocer-icon-62</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon46"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#tocer-icon46</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-67"></use>
                    </svg>
                    <div class="name">支付宝</div>
                    <div class="fontclass">#tocer-icon-67</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon47"></use>
                    </svg>
                    <div class="name">公司代码</div>
                    <div class="fontclass">#tocer-icon47</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon51"></use>
                    </svg>
                    <div class="name">信封</div>
                    <div class="fontclass">#tocer-icon51</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon52"></use>
                    </svg>
                    <div class="name">叉叉</div>
                    <div class="fontclass">#tocer-icon52</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-61"></use>
                    </svg>
                    <div class="name">关闭</div>
                    <div class="fontclass">#tocer-icon-61</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon48"></use>
                    </svg>
                    <div class="name">任务</div>
                    <div class="fontclass">#tocer-icon48</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-73"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#tocer-icon-73</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-64"></use>
                    </svg>
                    <div class="name">分类</div>
                    <div class="fontclass">#tocer-icon-64</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-70"></use>
                    </svg>
                    <div class="name">点</div>
                    <div class="fontclass">#tocer-icon-70</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon54"></use>
                    </svg>
                    <div class="name">商品标签</div>
                    <div class="fontclass">#tocer-icon54</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon55"></use>
                    </svg>
                    <div class="name">需求计划</div>
                    <div class="fontclass">#tocer-icon55</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon56"></use>
                    </svg>
                    <div class="name">库存计划</div>
                    <div class="fontclass">#tocer-icon56</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon57"></use>
                    </svg>
                    <div class="name">促销计划</div>
                    <div class="fontclass">#tocer-icon57</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-68"></use>
                    </svg>
                    <div class="name">微信 支付</div>
                    <div class="fontclass">#tocer-icon-68</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#tocer-icon-71"></use>
                    </svg>
                    <div class="name">勾</div>
                    <div class="fontclass">#tocer-icon-71</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#tocer-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
